def enum_type_formatter(view, context, model, name) -> str | None:
    db_value = getattr(model, name)
    if db_value:
        return db_value.value

    return None
